<?php
/**
 * TOP API: taobao.item.sku.delete request
 * 
 * @author auto create
 * @since 1.0, 2012-04-17 12:36:56
 */
class ItemSkuDeleteRequest
{
    /** 
     * sku所属商品的数量,大于0的整数。当用户删除sku，使商品数量不等于sku数量之和时候，用于修改商品的数量，使sku能够删除成功。特别是删除最后一个sku的时候，一定要设置商品数量到正常的值，否则删除失败
     **/
    private $itemNum;
    
    /** 
     * sku所属商品的价格。当用户删除sku，使商品价格不属于sku价格之间的时候，用于修改商品的价格，使sku能够删除成功
     **/
    private $itemPrice;
    
    /** 
     * Sku文字的版本。可选值:zh_HK(繁体),zh_CN(简体);默认值:zh_CN
     **/
    private $lang;
    
    /** 
     * Sku所属商品数字id，可通过 taobao.item.get 获取。必选
     **/
    private $numIid;
    
    /** 
     * Sku属性串。格式:pid:vid;pid:vid,如: 1627207:3232483;1630696:3284570,表示机身颜色:军绿色;手机套餐:一电一充
     **/
    private $properties;
    
    private $apiParas = array();
    
    public function setItemNum($itemNum)
    {
        $this->itemNum = $itemNum;
        $this->apiParas["item_num"] = $itemNum;
    }

    public function getItemNum()
    {
        return $this->itemNum;
    }

    public function setItemPrice($itemPrice)
    {
        $this->itemPrice = $itemPrice;
        $this->apiParas["item_price"] = $itemPrice;
    }

    public function getItemPrice()
    {
        return $this->itemPrice;
    }

    public function setLang($lang)
    {
        $this->lang = $lang;
        $this->apiParas["lang"] = $lang;
    }

    public function getLang()
    {
        return $this->lang;
    }

    public function setNumIid($numIid)
    {
        $this->numIid = $numIid;
        $this->apiParas["num_iid"] = $numIid;
    }

    public function getNumIid()
    {
        return $this->numIid;
    }

    public function setProperties($properties)
    {
        $this->properties = $properties;
        $this->apiParas["properties"] = $properties;
    }

    public function getProperties()
    {
        return $this->properties;
    }

    public function getApiMethodName()
    {
        return "taobao.item.sku.delete";
    }
    
    public function getApiParas()
    {
        return $this->apiParas;
    }
    
    public function check()
    {
        
        RequestCheckUtil::checkNotNull($this->numIid,"numIid");
        RequestCheckUtil::checkNotNull($this->properties,"properties");
    }
}
